<template>
  <div>
    <van-nav-bar class="hmNavBar" @click-left="$router.push(path)">
      <template #title>
        <div class="title">
          {{ title }}
        </div>
      </template>
      <template #left>
        <div>
          <i class="iconfont f44">&#xe637;</i>
        </div>
      </template>
      <template #right>
        <div class="right pr15">
          {{ right }}
        </div>
      </template>
    </van-nav-bar>
  </div>
</template>
<script>
export default {
  name: 'hmNavBar',
  props: ['title', 'right', 'path']
}
</script>
<style lang="less" scoped>
.hmNavBar {
  .f44 {
    font-size: 44px;
  }
  ::v-deep .van-nav-bar__left,
  ::v-deep .van-nav-bar__rgiht {
    padding-left: 0;
    padding-right: 0;
  }
  .pr15 {
    padding-right: 15px;
  }
  .title {
    font-size: 18px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #222222;
    line-height: 25px;
    letter-spacing: 0px;
  }
}
</style>
